<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="renderer" content="webkit">
	<title> hAdmin- 主页</title>
	<meta name="keywords" content="">
	<meta name="description" content="">
	<!--[if lt IE 9]>
	<meta http-equiv="refresh" content="0;ie.html" />
	<![endif]-->
	<link rel="shortcut icon" href="favicon.ico">
	<link href="/Application/Admin/View//Public/static/css/bootstrap.min.css" rel="stylesheet">
	<link href="/Application/Admin/View//Public/static/css/font-awesome.min.css" rel="stylesheet">
	<link href="/Application/Admin/View//Public/static/css/animate.css" rel="stylesheet">
	<link href="/Application/Admin/View//Public/static/css/style.css" rel="stylesheet">
	<!--表单元素css-->
	<link href="/Application/Admin/View//Public/static/css/plugins/iCheck/custom.css" rel="stylesheet">

</head>

<body class="fixed-sidebar full-height-layout gray-bg">
<div id="wrapper">
	<!--左侧导航开始-->
	<nav class="navbar-default navbar-static-side" role="navigation">
	<div class="nav-close"><i class="fa fa-times-circle"></i></div>
	<div class="sidebar-collapse">
		<ul class="nav" id="side-menu">
			<li class="nav-header">
				<div class="dropdown profile-element">
					<a data-toggle="dropdown" class="dropdown-toggle" href="#">
						<span class="clear">
                                    <span class="block m-t-xs" style="font-size:20px;">
                                        <i class="fa fa-area-chart"></i>
                                        <strong class="font-bold">管理系统</strong>
                                    </span>
						</span>
					</a>
				</div>
				<div class="logo-element">管理系统</div>
			</li>
			<li>
				<a class="J_menuItem" href="<?php echo U('index/index');?>">
					<i class="fa fa-home"></i>
					<span class="nav-label">主页</span>
				</a>
			</li>
			<li class="line dk"></li>
			<li>
				<a href="<?php echo U('member/index');?>">
					<i class="fa fa-user"></i>
					<span class="nav-label">会员管理</span>
				</a>
			</li>
			<li class="line dk"></li>
			<li>
				<a href="<?php echo U('admin/index');?>">
					<i class="fa fa-users"></i>
					<span class="nav-label">后台用户</span>
				</a>

			</li>
			<li class="line dk"></li>
			<li>
				<a href="<?php echo U('list/index');?>">
					<i class="fa fa-folder"></i>
					<span class="nav-label">应用列表</span>
				</a>
			</li>
			<li class="line dk"></li>
			<li>
				<a href="<?php echo U('Config/index');?>">
					<i class="fa fa-cogs"></i>
					<span class="nav-label">网站配置</span>
				</a>
			</li>
			<li class="line dk"></li>
			<li>
				<a href="<?php echo U('jubao/index');?>">
					<i class="fa fa-envelope-o"></i>
					<span class="nav-label">举报信箱</span>
				</a>
			</li>
			<li class="line dk"></li>
			<li>
				<a href="<?php echo U('ticket/index');?>">
					<i class="fa fa-file-o"></i>
					<span class="nav-label">工单列表</span>
				</a>
			</li>




			<li class="line dk"></li>
			<li>
				<a href="<?php echo U('Articles/advertisement');?>">
					<i class="fa fa-file-o"></i>
					<span class="nav-label">广告</span>
				</a>
			</li>
			<li class="line dk"></li>
			<li>
				<a href="<?php echo U('Download/index');?>">
					<i class="fa fa-file-o"></i>
					<span class="nav-label">套餐设置</span>
				</a>
			</li>
		</ul>
	</div>
</nav>
	<!--左侧导航结束-->
	<!--右侧部分开始-->
	<div id="page-wrapper" class="gray-bg dashbard-1" style="height: auto;">
		<nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
	<ul class="nav navbar-top-links navbar-right">
		<li class="dropdown">
			<a href="<?php echo U('login/delcache');?>" class="dropdown-toggle count-info"><i class="fa fa-check"></i> 清除缓存</a>
		</li>
		<li class="dropdown">
			<a href="<?php echo U('login/logout');?>" class="dropdown-toggle count-info"><i class="fa fa-power-off"></i> 退出</a>
		</li>
	</ul>
</nav>
		<div class="row J_mainContent" id="content-main">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<h5>应用管理</h5>
					</div>
					<div class="ibox-content">
						<form method="post" action="<?php echo U('list/update');?>" enctype="multipart/form-data" class="form-horizontal">

							<div class="form-group">
								<label class="col-sm-2 control-label">ID</label>
								<div class="col-sm-10">
									<input type="text" class="form-control" disabled="disabled"   value="<?php echo ($post["id"]); ?>">
								</div>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">发布人</label>
								<div class="col-sm-10">
									<input type="text" class="form-control" disabled="disabled"     value="<?php echo (getName($post["fid"])); ?>">
								</div>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">手机号</label>
								<div class="col-sm-10">
									<input type="text" class="form-control" disabled="disabled"   value="<?php echo (getPhone($post["fid"])); ?>">
								</div>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">昵称</label>
								<div class="col-sm-10">
									<input type="text" class="form-control"  placeholder="输入昵称" name="nickname"  value="<?php echo ($post["nickname"]); ?>">
								</div>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">网址</label>
								<div class="col-sm-8">
									<input type="text" class="form-control" disabled  placeholder="输入昵称" name="web"  value="<?php echo ($post["web"]); ?>">
								</div>
								<div class="col-sm-2">	<a href="<?php echo ($post["web"]); ?>" target="_blank">点击链接</a></div>
							</div>

							<div class="form-group">
								<label class="col-sm-2 control-label">第二网址</label>
								<div class="col-sm-8">
									<input type="text" class="form-control"  placeholder="输入昵称" name="shorturl"  value="<?php echo ($post["shorturl"]); ?>">
								</div>
								<div class="col-sm-2">	<a href="<?php echo ($post["web"]); ?>" target="_blank">点击链接</a></div>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">类型</label>
								<div class="col-sm-10">
									<?php if($post["ext"] == 'ipa' ): ?><input type="text" class="form-control" disabled="disabled" name="ext" value="IOS" ><span class="help-block m-b-none"></span><?php endif; ?>
									<?php if($post["ext"] == 'apk' ): ?><input type="text" class="form-control" disabled="disabled" name="ext" value="安卓"><span class="help-block m-b-none"></span><?php endif; ?>
									<span class="help-block m-b-none"></span>
								</div>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">批号</label>
								<div class="col-sm-10">
									<input type="text" class="form-control" name="pihao" value="<?php echo ($post["pihao"]); ?>" ><span class="help-block m-b-none"></span>
								</div>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">密码</label>
								<div class="col-sm-10">
									<input type="text" class="form-control" name="aqpassword" value="<?php echo ($post["aqpassword"]); ?>" ><span class="help-block m-b-none"></span>
								</div>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">app下载地址</label>
								<div class="col-sm-10"><input type="text" name="uptxt" class="form-control"   value="<?php echo ($post["uptxt"]); ?>"></div>
							</div>
										<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">.plist</label>
								<div class="col-sm-10"><input type="text" name="plist" class="form-control"   value="<?php echo ($post["plist"]); ?>"></div>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">是否热门</label>

								<div class="checkbox i-checks">
									<?php if($post["ishot"] == '0' ): ?><input name="ishot"  value="1" type="radio">是
										<input name="ishot" value="0" type="radio" checked="checked">否

										<?php elseif($post["ishot"] == '1' ): ?>
										<input name="ishot"  value="1" checked="checked"type="radio">是
										<input name="ishot" value="0" type="radio" >否<?php endif; ?>
								</div>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">下载次数</label>
								<div class="col-sm-10">
									<input type="text" name="xznum" disabled="disabled"  class="form-control"   value="<?php echo ($post["xznum"]); ?>">
								</div>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">介绍</label>
								<div class="col-sm-10">
									<textarea rows="6" placeholder="请输入介绍" name="beifen" style="width:100%;resize: none"><?php echo ($post["beifen"]); ?></textarea>
								</div>
							</div>
							<style>
								.mobanspan{display:block;float:left;margin-right:10px;text-align:center;}
								.mobanspan img{border:1px solid #cecece;}
							</style>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">模板使用</label>
								<div class="col-sm-10">
								<div >
									<img src="https://www.pgyer.com/static/images/fashion4.png" width="100px">
									<img src="https://www.pgyer.com/static/images/fashion4.png"  width="100px"><br>

							</div>
							<div class="checkbox i-checks" >

								<?php if($post["mobanid"] == '0' ): ?><input type="radio" name="mobanid" value="0" checked="checked" >模板一
									&emsp;&emsp;&emsp;&emsp;&emsp;
									<input type="radio" name="mobanid" value="1"   >模板二<?php endif; ?>
								<?php if($post["mobanid"] == '1' ): ?><input type="radio" name="mobanid" value="0"  >模板一
									&emsp;&emsp;&emsp;&emsp;&emsp;
									<input type="radio" name="mobanid" value="1"  checked="checked"  >模板二<?php endif; ?>


							</div>
								</div>
							</div>
							<div class="form-group">

								<div class="col-sm-4 col-sm-offset-2">
									<input type="hidden" name="id" value="<?php echo ($post["id"]); ?>">
									<input type="hidden" name="fid" value="<?php echo ($post["fid"]); ?>">
									<input type="submit" class="btn btn-info" value="提交"/>
								</div>
							</div>

						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
	<!--右侧部分结束-->

	<!-- 全局js -->
	<script src="/Application/Admin/View//Public/static/js/jquery.min.js"></script>
	<script src="/Application/Admin/View//Public/static/js/bootstrap.min.js"></script>
	<script src="/Application/Admin/View//Public/static/js/content.js"></script>
	<script src="/Application/Admin/View//Public/static/js/plugins/iCheck/icheck.min.js"></script>
	<script>
        $(document).ready(function() {
            $('.i-checks').iCheck({
                checkboxClass: 'icheckbox_square-green',
                radioClass: 'iradio_square-green',
            });
        });
	</script>
</body>

</html>